<template>
  <div class="myhead">
    <div class="myhead-top">
      <div class="left"><van-icon name="arrow-left" @click="fun()" /></div>
      <div class="center">秒杀</div>
      <div class="right">
        <van-icon name="search" />
      </div>
    </div>
    <div class="myhead-bottom">
      <img src="https://pic.cdfgsanya.com/assets/upload/img/c26ffbf4f56f2743a665e753c2f0eba7.png" alt="">
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      fun() {
        this.$router.push('/home')
      }
    }
  }
}
</script>

<style scoped>
.myhead-top {
  width: 375px;
  height: 50px;
  background-color: red;
  display: flex;
}

.myhead-top .left {
  width: 50px;
  line-height: 50px;
  text-align: center;
  color: #fff;
  font-size: 25px;
}

.myhead-top .center {
  width: 275px;
  line-height: 50px;
  text-align: center;
  color: #fff;
  font-size: 18px;
}

.myhead-top .right {
  width: 50px;
  line-height: 50px;
  text-align: center;
  color: #fff;
  font-size: 25px;
}

.myhead-bottom {
  width: 375px;
  height: 156px;
  background-image: linear-gradient(#f40e25, #fff);
}

.myhead-bottom img {
  width: 355px;
  height: 136px;
  margin: 10px;
}
</style>